import java.util.Random;
import java.util.Scanner;

public class J20250523 {
    public static void main(String[] args) {
        Random random = new Random();
        int i = random.nextInt(100);
        Scanner scan = new Scanner(System.in);
        while(true){
            System.out.println("请输入你猜的数字");
            int in = scan.nextInt();
            if(in > i){
                System.out.println("你猜大了！");
            }else if( in < i){
                System.out.println("你猜小了！");
            }else{
                System.out.println("恭喜，你猜对了！");
                break;
            }
        }
    }
}
